Release 10.1A: OpenEdge Deployment:
Startup Command and Parameter Reference
Century Year Offset (-yy)
Use Century Year Offset (
-yy) to determine the start of the 100-year period in which a date with a two-digit year is valid.
Operating system
and syntax UNIX
Windows-yyn Use
with Maximum value Minimum value Single-user default Multi-user default Client Session, Database Server – – 1950 1950
nA four-digit year (1990, for example). The default is 1950.
Some OpenEdge applications reserve only two-digits for the year in the date format. When, for example,
-yyis set at 1950, Progress determines if the two-digit year value is greater or less than 50. If the year is greater than 50, Progress assumes that the date is in the twentieth century. If the year is less than 50, Progress assumes that the date is in the twenty-first century.Table 4–7 shows examples of
-yy.
Notice that all two-digit year values expand into the 100-year period beginning with
-yy.To test the effect of
-yy, start Progress with a different-yyvalue and run the following procedure:
If you use a hard-coded date containing a two-digit year in a
.pfile, Progress honors the-yyparameter and expands the two-digit year to a four-digit year during compilation. However, this may not match the runtime-yy. For this reason, Progress Software Corporation recommends that you use four digit years for hard-coded dates in programs. For example:
Note: When you dump or load any database, the
-yysetting you load with must match the-yysetting that was used for dumping, unless you use the Four Digit Year Default (-yr4def) startup parameter for dumping.This startup parameter provides the same functionality as the
SESSION:YEAR-OFFSETattribute.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |